<!DOCTYPE HTML>
<html>
  <head>
    <meta charset="utf-8" name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no" />
    <title>NFC Prototype v0.29</title>
    <link rel="stylesheet" type="text/css" href="css/1128.css">
	<link rel="stylesheet" href="http://code.jquery.com/mobile/1.4.0-rc.1/jquery.mobile.structure-1.4.0-rc.1.min.css" />
<!--    <link rel="stylesheet" href="http://code.jquery.com/mobile/1.4.0-alpha.2/jquery.mobile-1.4.0-alpha.2.min.css">
  <link rel="stylesheet" href="master.css" type="text/css" media="screen" title="no title" charset="utf-8">  -->
    <script src="http://code.jquery.com/jquery-1.10.2.min.js"></script>
    <script src="http://code.jquery.com/mobile/1.4.0-alpha.2/jquery.mobile-1.4.0-alpha.2.min.js"></script>
	<script type="text/javascript" charset="utf-8" src="cordova.js"></script>
	<script type="text/javascript" charset="utf-8" src="phonegap-nfc.js"></script>
	<script type="text/javascript" charset="utf-8" src="phonegap-toast.js"></script>
    <script type="text/javascript" charset="utf-8" src="js/write.js"></script>
    <script type="text/javascript">
    window.onload = function(){
		var btn = document.getElementById('write');
		var btnStop = document.getElementById('stop');
		btn.onclick = function(){
	        app.initialize();
		};
		btnStop.onclick = function(){
	        app.stopnfc();
		};
    };

	function handleOpenURL(url) {
	    alert("찾아주셔서 감사합니다.\n received url: " + url);
		if(url != ''){
			window.location.replace("http://70.12.110.62:8888/readview?i=1385347318500");
		}
	}

</script>
  </head>

<body>
    <div data-role="page" id="main">
       	<img alt="Logo" src="img/logo.png">
        <div data-role="header" data-theme="a">
            <h1>NFC TEST v0.29.2</h1>
        </div>
        <div data-role="content">
            <ul data-role="listview">
                <li><a href="read.html"  data-transition="flow">Read TAG(태그 읽기)</a></li>
                <li><a href="#write">Write TAG(태그 작성)</a></li>
                <li><a href="http://70.12.110.62:8888/write">Write TAG(DB Test)</a></li>
                <li><a href="http://70.12.110.62:8888/readlist"  data-transition="slide">Log View(기록 정보)</a></li>
                <li><a href="http://70.12.110.62:8888/soslist"  data-transition="slide">SOS List(실종동물)</a></li>
                <li><a href="http://70.12.110.62:8888/cam">CAM Test</a></li>
                <li><a href="map.html">Map Test</a></li>
            </ul>
        </div>
        <div data-role="footer" data-theme="a" style="text-align: center;">
        	<a href="http://70.12.110.62:8888/log" data-icon="alert">Admin</a>
        </div>
    </div>

    <div data-role="page" id="write">
        <div data-role="header" data-theme="a" data-add-back-btn="true">
		    <h1>S-Pet Writer</h1>
        </div>
        <div data-role="content">
	
    <form>
      Mime Type:<br/>
      <input type="text" name="mimeType" value="text/spet" size="30" /><br/>
      URL:<br/>      
      <input type="text" name="url" value="http://goo.gl/CSAaVz" size="30" /><br/>
      Payload:<br/>      
      <textarea name="payload" rows="10" cols="30">test</textarea>
    </form>
		    <button id="write">write!!!</button>
		    <button id="stop">Stop</button>
    <p>
        Tap an NFC tag to write data.
    </p>
		    <h1><a href="#main">WEB App main</a></h1>
		    <h3><a href="read.html">Read</a></h3>
	</div>
</div>


</body>
</html>